package com.sh.rpc.model;

import com.sh.rpc.constant.RpcConstant;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 请求
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class RpcRequest implements Serializable {

    private String serviceName;

    private String methodName;

    private Class<?>[] parameterTypes;   // 参数类型列表

    private Object[] args;          // 参数列表

    /**
     * 服务版本
     */
    private String serviceVersion= RpcConstant.DEFAULT_SERVICE_VERSION;

}
